package com.huaxin.hxmoduleworkorder.dto.request.base;

import com.huaxin.hxmoduleworkorder.common.annotation.validation.ValidMaintenanceOrderOperatorRole;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@SuperBuilder
@NoArgsConstructor
public class baseMaintenanceOrderOperationReqDTO {
    @Schema(description = "工单ID", example = "m_order_001")
    @NotBlank(message = "工单ID不能为空")
    private String orderId;

    @Schema(description = "操作人角色：customer（客户）/admin（管理员）/electrician（电工）", example = "admin")
    @ValidMaintenanceOrderOperatorRole
    private String operatorRole;

    @Schema(description = "操作人地址经度", example = "120.123456")
    private String operatorLongitude;

    @Schema(description = "操作人地址纬度", example = "30.123456")
    private String operatorLatitude;

    @Schema(description = "备注备注，如审核意见、处理说明等", example = "116.397128")
    private String remarks;
}
